package com.teaRestaurant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teaRestaurant.domain.DTO.ComboPageQueryDTO;
import com.teaRestaurant.domain.entity.Combo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ComboMapper extends BaseMapper<Combo> {

    @Select("SELECT COUNT(DISTINCT id) FROM combo")
    List<Combo> list(ComboPageQueryDTO comboPageQueryDTO);

    void deleteComboDetail(Long id);
}
